<?php
include "DBconf.php";

$response = 'false';
$uid = '';
$query = '';

if(isset($_GET['uid'])){
    $uid = $_GET['uid'];
    $query = "SELECT * FROM usuario WHERE login = '$uid'";
    
    $connection = mysql_connect($server, $db_user, $db_pass);
    
    if(mysql_select_db($db_name, $connection)){
        $result = mysql_query($query,$connection);
        
        if($result){
            $line = mysql_fetch_array($result);
            
            if(isset($line['uid']))
                $response = 'true';
        }
    }
}
echo $response;
?>
